package com.gpzx.zx.module.mine.ui.activity

import android.content.Context
import android.content.Intent
import android.os.Bundle

import com.gpzx.zx.R

import com.gpzx.zx.databinding.ActivityCollectionMineBinding
import com.gpzx.zx.databinding.ActivityCommentBinding
import com.gpzx.zx.module.mine.frame.presenter.CollectionPresenter
import com.gpzx.zx.module.mine.frame.presenter.CommentPresenter
import com.gpzx.zx.module.mine.frame.view.CollectionView
import com.gpzx.zx.module.mine.frame.view.CommentView

import com.wkq.base.frame.activity.MvpBindingActivity

/**
 *
 * 作者:吴奎庆
 *
 * 时间:2020/6/14
 *
 * 用途:
 */


class CommentActivity : MvpBindingActivity<CommentView, CommentPresenter, ActivityCommentBinding>() {
    companion object {
        fun newInstance(context: Context) {
            var intnet = Intent(context, CommentActivity().javaClass)
            context.startActivity(intnet)
        }
    }

    override fun getLayoutId(): Int {
        return R.layout.activity_comment
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        if (mvpView != null) mvpView.initView()
        if (presenter != null) presenter.initData(this)
    }
}